Skip to content

[mobile] Tests Login - #321

Merged
agritheory merged 47 commits into
mobile_v15from
issue-303_test-login
Aug 11, 2026
Merged

[mobile] Tests Login#321
agritheory merged 47 commits into
mobile_v15from
issue-303_test-login

Conversation

@lauty95

@lauty95 lauty95 commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

lauty95 and others added 17 commits June 4, 2025 09:35
Automatically generated by python-semantic-release
Co-authored-by: fproldan <franciscoproldan@gmail.com>
Co-authored-by: Ishwarya <ishwarya.m@promantia.com>
Co-authored-by: Tyler Matteson <tyler@agritheory.com>
Automatically generated by python-semantic-release
Co-authored-by: Lautaro Juarez <38353324+lauty95@users.noreply.github.com>
Co-authored-by: lauty95 <lautaroj95@gmail.com>
Automatically generated by python-semantic-release
@lauty95 lauty95 self-assigned this Feb 20, 2026
@github-actions

github-actions Bot commented Feb 20, 2026

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py10100% 
beam
   barcodes.py1073963%21, 30, 36–37, 43, 46, 58, 80–81, 83–84, 90–92, 94–96, 103–105, 111, 121, 129, 136, 139–140, 146–147, 153, 159, 165, 171, 183, 186–189, 191–192
   handling_unit.py813655%32, 64–66, 84, 95–96, 102–103, 105–106, 108–109, 111–112, 114, 116–119, 121–123, 125, 127, 129–130, 135, 137, 141, 143–144, 147, 149–150, 158
   printing.py935540%18–19, 48, 50–53, 62–66, 70–71, 83–87, 91, 97, 106–112, 114–115, 117, 122, 124–125, 140–145, 147–153, 160–163, 165–168
   zpl_layout.py2442440%12–15, 17, 20, 36, 47–48, 51–52, 54–55, 58, 61, 64–67, 69–71, 77, 81–83, 86–87, 90–91, 93–94, 99, 101, 110–111, 113, 115, 118–120, 122–125, 128–129, 132, 140–141, 144–146, 154, 157, 161, 164, 167, 177–183, 185, 188, 193–196, 198, 201–206, 209–215, 217, 219, 222, 224–227, 231–233, 235–239, 241–245, 249–253, 258, 260, 263–269, 278–282, 285–292, 295–308, 311–313, 316–328, 331, 334–336, 339–353, 356–361, 364, 366, 369, 384, 386–387, 390–391, 393, 395, 397–399, 402, 411, 418–420, 423–424, 427, 429–433, 436, 439–442, 445–448, 451–453, 469, 471, 474–475, 496–501, 505, 507–508, 516–521
beam/demand
   demand.py3384586%51, 66, 123, 209, 243, 290, 293, 463–464, 483–485, 490–491, 493, 495–497, 499, 543, 621, 625, 662, 667, 674, 695–696, 707, 713–729
   receiving.py1251786%79, 131, 173, 214, 244, 249–260
   sqlite.py59198%40
   utils.py59689%56, 67, 73–75, 83
beam/doctype/beam_mobile_route
   beam_mobile_route.py30100% 
beam/doctype/beam_settings
   beam_settings.py341750%35–37, 40–41, 43, 50, 55–58, 66–68, 72–74
beam/doctype/handling_unit
   __init__.py9366%12–14
   handling_unit.py17194%27
beam/doctype/warehouse_types
   warehouse_types.py30100% 
beam/overrides
   network_printer_settings.py403220%14–18, 24–34, 42–46, 49, 52–55, 57–62
   sales_order.py10640%11–16
   stock_entry.py911682%115–116, 121–128, 134–135, 151, 183, 186–187
   work_order.py10280%14, 16
beam/report/demand_map
   demand_map.py35350%4–5, 7–8, 11–12, 15–16, 103–111, 127, 129–143, 146–147
beam/report/handling_unit_traceability
   handling_unit_traceability.py44440%4–6, 9–11, 30–32, 34–35, 37–38, 41–42, 45–46, 48–49, 51–52, 54–55, 57, 63–65, 67–69, 71, 74–77, 79–81, 83–86, 89–90
beam/scan
   __init__.py1912785%24, 34, 161–162, 172, 174–175, 179, 183–184, 187, 193, 204–205, 209, 230, 234, 263, 265, 284–285, 291, 294, 297, 406, 414, 421
   config.py28280%4, 6, 9–17, 19–21, 23–26, 28–30, 32–35, 38–39, 41
   user_login.py31310%4–6, 8, 11–13, 17–19, 21–22, 24–25, 27–29, 31–33, 35–38, 40–45, 47
www/beam
   __init__.py14140%4–7, 10–19
   index.py770%4, 6, 9–13
TOTAL167470657% 

@lauty95
lauty95 requested a review from agritheory February 20, 2026 12:41
@lauty95

lauty95 commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator Author

@agritheory! This PR is ready for review.

Latest changes:

  • Since BEAM Settings now allow enabling or disabling automatic barcode generation, the seed data setup now checks all relevant doctypes (Item, User, and Warehouse). This ensures all tests run as expected.
  • Added the --order-scope=module option in pyproject.toml. This allows us to use @pytest.mark.order(1..X) within each new test_*.py file without needing to coordinate ordering across the entire suite.
    @IshwaryaM1030 this could help when creating new test suites.

@lauty95 lauty95 linked an issue Jun 9, 2026 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown

Draft Changelog Entry

Changelog Entry

This update adds comprehensive testing for the mobile login functionality, including a new test suite for scan-to-login workflows. The changes establish proper test coverage for login behavior and validate that users without the BEAM Mobile User role are handled correctly during authentication.

The update includes fixes to test visibility and ordering to ensure tests run consistently and reliably. Configuration adjustments were made to support barcode scanning across all document types during testing, and department data handling was corrected to maintain accuracy during test execution.

This changelog entry was automatically generated by the Changelog Generator Action.

Repository owner deleted a comment from github-actions Bot Aug 10, 2026
@github-actions

Copy link
Copy Markdown

Coverage

Coverage Report •
FileStmtsMissCoverMissing
beam
   printer_queue.py2535180%66, 71–81, 85–86, 92, 97, 99, 105, 108–109, 123, 125, 128–129, 189–191, 196, 204–208, 264, 281–282, 284–288, 291–292, 299, 305, 341–342, 407, 441, 452–453
   printing.py956037%20–22, 47, 50–51, 53–56, 65–69, 73–74, 76–77, 86–90, 94, 100, 109–115, 117–118, 120, 125, 127–128, 143–148, 150–156, 163–166, 168–171
beam/demand
   sqlite.py60198%41
beam/doctype/beam_settings
   beam_settings.py351849%36–38, 41–42, 44, 51, 56–60, 68–70, 74–76
beam/overrides
   network_printer_settings.py59418469%52–53, 94, 103–105, 107–110, 112, 114–115, 126–130, 140–146, 151, 158–164, 169, 176, 188, 214, 233, 239–241, 270, 279, 313–314, 318–321, 323–331, 378, 384–385, 393–395, 400, 415, 441–442, 447–448, 461, 474, 487–492, 503–507, 549–552, 561, 583, 587–589, 612, 618, 639, 645, 661, 686, 699–703, 719–723, 727, 748, 787, 800–801, 817, 830, 860–870, 878–882, 894, 925, 942, 947, 957–962, 967, 971, 984–985, 1001–1006, 1012–1013, 1015–1016, 1024–1027, 1029–1031, 1033, 1037–1040, 1042–1044, 1046, 1048–1049, 1051–1052, 1057, 1062, 1075, 1080–1084, 1094
   stock_entry.py931782%115–116, 121–128, 134–135, 151, 169, 186, 189–190
beam/scan
   __init__.py2164281%24, 34, 90–92, 168–169, 179, 181–182, 186, 190–191, 194, 200, 211–212, 216, 249, 253, 262, 268, 292, 294, 321, 323–324, 330–337, 344, 352, 365, 368, 476, 484, 491
TOTAL252292963% 

@agritheory
agritheory merged commit df253ac into mobile_v15 Aug 11, 2026
10 checks passed
@agritheory
agritheory deleted the issue-303_test-login branch August 11, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile Scan to Login UI Test

3 participants